package com.atguigu.gulimall.ware;

import com.atguigu.gulimall.ware.config.WxMappingJackson2HttpMessageConverter;
import feign.codec.Decoder;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.support.SpringDecoder;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableRabbit // 开启rabbitmq的配置
@SpringBootApplication
@EnableDiscoveryClient //nacos注册中心客户端
@EnableFeignClients("com.atguigu.gulimall.ware.feign") // 开启远程调用功能
public class GulimallWareApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallWareApplication.class, args);
    }

}
